//
//  XMDouble+Extension.swift
//  AnneKit-Swift
//
//  Created by 寜小陌 on 2021/3/3.
//  Copyright © 2021 宁小陌. All rights reserved.
//

import Foundation
import UIKit

extension Double {
    // MARK: - 时间戳转换成Date
    func nxm_timestampWithDate() -> Date {
        let date = Date.init(timeIntervalSince1970: self)
        let zone = NSTimeZone.system
        let interval = zone.secondsFromGMT(for: date)
        let localeDate = date.addingTimeInterval(TimeInterval(interval))
        return localeDate
    }
}
